<%= form_for(@didatic_material) do |f| %>
  <% if @didatic_material.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@didatic_material.errors.count, "error") %> prohibited this didatic_material from being saved:</h2>

      <ul>
      <% @didatic_material.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :lesson %><br />
    <% options = Lesson.all(:order => "title").collect {|lesson| [lesson.title,lesson.id]} %>
    <%= select(:didatic_material, :lesson_id , options, :prompt => ">> Choose <<") %>
  </div>
  <div class="field">
    <%= f.label :content %><br />
    <% options = Content.all(:order => "name").collect {|content| [content.name,content.id]} %>
    <%= select(:didatic_material, :content_id , options, :prompt => ">> Choose <<") %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
